package com.thinkgem.jeesite.cn.yy.serviceimpl;

import com.thinkgem.jeesite.cn.yy.entity.ProInfo;
import com.thinkgem.jeesite.cn.yy.service.ProInfoService;
import com.thinkgem.jeesite.cn.yy.utils.Paging;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/11/17 0017.
 */
@Service
@Transactional
public class ProInfoServiceImpl implements ProInfoService {

    @Resource
    private ProInfoService proInfoService;

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public ProInfo getProInfoByProName(String ProName) {
       return proInfoService.getProInfoByProName(ProName);
    }

    @Transactional(propagation=Propagation.NOT_SUPPORTED)
    public List<ProInfo> getProInfoByProStatus(int prostatus) {
       return proInfoService.getProInfoByProStatus(prostatus);
    }
//
    @Transactional(propagation=Propagation.NOT_SUPPORTED)
    public List<ProInfo> getProInfoByProDate(Date prodate) {
        return proInfoService.getProInfoByProDate(prodate);
    }

    @Transactional(propagation=Propagation.NOT_SUPPORTED)
    public List<ProInfo> getProInfoByUserId(String userid) {
        return proInfoService.getProInfoByUserId(userid);
    }

    @Transactional(propagation=Propagation.NOT_SUPPORTED)
    public List<ProInfo> getProInfos(Paging paging) {
        return proInfoService.getProInfos(paging);
    }

    @Transactional(propagation=Propagation.NOT_SUPPORTED)
    public int getProInfosPage(){
        return proInfoService.getProInfosPage();
    }


    public void saveProInfo(ProInfo proinfo) {
        proInfoService.saveProInfo(proinfo);
    }


    public void updateProInfoName(ProInfo proinfo) {
        proInfoService.updateProInfoName(proinfo);
    }

    /**
     * 插入全查项目日志
     */
    public void saveGetProjectAction() {
     proInfoService.saveGetProjectAction();
    }
    /**
     * 插入根据项目名获取信息的日志
     */

    public void saveGetProInfoByProNameAction(@Param("pro_name") String pro_name) {
        proInfoService.saveGetProInfoByProNameAction(pro_name);
    }

    /**
     * 插入根据项目状态获取信息的日志
     * @param prostatus
     */

    public void saveGetProInfoByProStatusAction(@Param("prostatus") int prostatus) {
        proInfoService.saveGetProInfoByProStatusAction(prostatus);
    }

    /**
     * 插入信息建项目的操作日志
     * @param proInfo
     */
    public void saveSaveProInfoAction(ProInfo proInfo) {
        proInfoService.saveSaveProInfoAction(proInfo);
    }

    /**
     * 插入更改项目信息的操作日志
     * @param proInfo
     */
    public void saveUpdateProInfoName(ProInfo proInfo) {
        proInfoService.saveUpdateProInfoName(proInfo);
    }
}
